<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>index</title>
</head>
<frameset rows="16%,84%" cols="*">
    <frame src="top.jsp" name="top" scrolling="no" />
    <frameset rows="*" cols="20%,80%" frameborder="1" framespacing="1" border="1">
		<frame src="menu.jsp" name="left" scrolling="no" />
		<% 
			String user_id = (String)session.getAttribute("UserID");
			String permission = (String)session.getAttribute("Permission");
			int _permission = 0;
			
			if (permission != null && permission != ""){
				_permission = Integer.parseInt(permission);
			}
			
			if (user_id != "" && user_id != null)
			{
				if(_permission < 3)
				{
				%>
					<frame src="main_page.jsp" name="right" scrolling="auto" />
				%>
				<%
				}else if(_permission == 3){
				%>
					<frame src="tu_subject_list.jsp" name="right" scrolling="auto" />
				<%
				}else{
				%>
					<frame src="adminMain.jsp" name="right" scrolling="auto" />
				<%
				}
			}else{
		%>
			<frame src="Login.jsp" name="right" scrolling="auto" />
		<%}%>
    </frameset>
</frameset>

</html>